#ifndef THREADPOOL_H
#define THREADPOOL_H

#include <QObject>

class ThreadPool : public QObject
{
    Q_OBJECT
public:
    static ThreadPool* getPoolInstance(){
        static ThreadPool pool;
        return &pool;
    }
    void init(const int& num,const int& max);
signals:
    
public slots:
    void getText(const QString txt);
private:
    explicit ThreadPool(QObject *parent = nullptr);
    int m_max;
};

#endif // THREADPOOL_H
